# encoding=gbk
import opennsfw2 as n2
from typing import Sequence
# 将自动下载预训练模型 open_nsfw_weights.h5 到 C:\Users\Administrator\.opennsfw2\weights
# pip install opennsfw2
# 单张预测

def singleDetection(path):
    return n2.predict_image(path)

def multipleDetection(
        paths:Sequence[str]):
    return n2.predict_images(paths)
